package com.dailyblue.java.spring.cloud.example.customer.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "example-producer")
public interface CustomerService {
    @GetMapping("/producer/a")
    String a();

    @GetMapping("/producer/b/{a}/{b}")
    String b(@PathVariable("a") Integer a, @PathVariable("b") String b);

    @PostMapping("/producer/c")
    String c();
}
